package com.dotflat.satistics.vo.general;

import lombok.Data;

/**
 * *******************************
 * Created by Tim.
 * form com.matt
 * on 2018/7/24
 * *******************************
 */
@Data
public class AllSituationRateVo {
    private String areaName;
    private double unitPrice = 0;
    private double arrivedTransferRate =0;
    private double arrivalInitiativeRate = 0;
    private double arrivalPassivityRate = 0;
    public static AllSituationRateVo of(String areaName, double unitPrice, double arrivedTransferRate, double arrivalInitiativeRate, double arrivalPassivityRate){
        AllSituationRateVo vo = new AllSituationRateVo();
        vo.setAreaName(areaName);
        vo.setUnitPrice(unitPrice);
        vo.setArrivedTransferRate(arrivedTransferRate);
        vo.setArrivalInitiativeRate(arrivalInitiativeRate);
        vo.setArrivalPassivityRate(arrivalPassivityRate);
        return vo;
    }
}
